package com.juc.threadPoolExecutor.threadPoolExecutor9;
/**
 * 
 * 有时需要对线程池中创建的线程属性进行定制化，
 * 这时要配置ThreadFactory线程工厂
 *
 */
public class MyRunnable1 implements Runnable{

	@Override
	public void run() {
		try {
			System.out.println(Thread.currentThread().getName() + " begin " + System.currentTimeMillis());
			Thread.sleep(4000);
			System.out.println(Thread.currentThread().getName() + " end " + System.currentTimeMillis());
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}

}
